#ifndef RCR_H_
#define RCR_H_

#endif /*RCR_H_*/

#define PERIOD (137)
#define SLEEP_PERIOD (32768)
#define CLOSE (0)
#define OPEN (1)

static uint8_t RxCallBack(linkID_t);


#define SLEEP_PERIOD (32768)		//timer count for 1 sec interupt sleep time
#define FALSE 	(0)
#define TRUE  	(1)
#define ALWAYS 	(1)
#define SLEEP	__bis_SR_register(LPM0_bits + GIE)
#define RESET	WDTCTL = 0

#define RCR_IDENTIFY (0)
#define RCR_REQUEST	 (2)

#define TYPE		 (0)
#define ZONE_ID		 (1)
#define SLEEP_TIME	 (1)
#define VENT_STATUS	 (2)
#define BATT_LIFE	 (2)

#define QUICK_CONNECT_TIME	(2)
#define LONG_CONNECT_TIME	(5)

// function prototypes
static uint8_t RxCallBack(linkID_t);
void CTCLink();
void RCRInit();
uint8_t readTemp();
void sendReq();
void updateVentPosition();
void wait(int seconds);


